<?php /* Smarty version 2.6.18, created on 2010-05-04 23:35:47
         compiled from products/products_insert_form.html */ ?>
<script type="text/javascript">
	var caldef1 =
	{
		firstday : 0,
		dtype : 'yyyy-MM-dd',
		width : 250,
		windoww : 300,
		windowh : 200,
		border_width : 0,
		border_color : '#0000d3',
		dn_css : 'clsDayName',
		cd_css : 'clsCurrentDay',
		wd_css : 'clsWorkDay',
		we_css : 'clsWeekEnd',
		wdom_css : 'clsWorkDayOtherMonth',
		weom_css : 'clsWeekEndOtherMonth',
		headerstyle :
		{
			type : "buttons",
			imgnextm : 'img/forward.jpg',
			imgprevm : 'img/back.jpg',
			css : 'clsDayName'
		},
		showtime : true,
		monthnames : ["January", "February", "March", "April", "May", "June",
			"July", "August", "September", "October", "November", "December"],
		daynames : ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
		template_path : 'http://localhost/GMS/library/javascript/calendar/Builder/',
		img_path : 'http://localhost/GMS/library/javascript/calendar/Builder/img/'

	}; 
	var c3 = new CodeThatCalendar(caldef1); 

</script>


<form id="insert_products_form" method="POST" 
		action="<?php echo @APPLICATION_URL; ?>
products/insert/">
	<table border="0" cellpadding="10px">
		<tr>
			<td>Name</td>
			<td><input id="pro_name" name="pro_name" size=30/></td>	
		</tr>
		<tr>
			<td>Description</td>
			<td><input id="pro_description" name="pro_description" size=30/></td>
		</tr>
		<tr>
			<td>Price</td>
			<td><input id="pro_price" name="pro_price" size=30/></td>
		</tr>
		<tr>
			<td>Brands</td>
			<td>
				<select id="pro_br_id" name="pro_br_id">
					<?php $_from = $this->_tpl_vars['brandsList']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['phantu']):
?>
						<option value="<?php echo $this->_tpl_vars['phantu']['br_id']; ?>
"><?php echo $this->_tpl_vars['phantu']['br_name']; ?>
</option>					
					<?php endforeach; endif; unset($_from); ?>
				</select>
			</td>
		</tr>
		<tr>
			<td>Categories</td>
			<td>
				<select id="pro_cat_id" name="pro_cat_id">
					<?php $_from = $this->_tpl_vars['categoriesList']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['phantu']):
?>
						<option value="<?php echo $this->_tpl_vars['phantu']['cat_id']; ?>
"><?php echo $this->_tpl_vars['phantu']['cat_name']; ?>
</option>					
					<?php endforeach; endif; unset($_from); ?>
				</select>
			</td>
		</tr>		
		<tr>
			<td>Date</td>
			<td>
				<input id="pro_issuedate" name="pro_issuedate" size=30 readonly/>
				<input type="button" onClick="c3.popup('pro_issuedate');" value="..."/>
			</td>
		</tr>
		<tr>
			<td colspan=2 align="left">
				<input type="submit" id="insert_product_btn" 
					name="insert_product_btn" value="Insert a product"/>
			</td>
		</tr>
	</table>
</form>